<template>
    <div>
        <p class="info">{{msg}}</p>
    </div>
</template>

<script>
    export default {
      name: "supplier",
      data(){
          return {
            msg : '我是供应端，主要是小型的批发商服务的'
          }
      },
      beforeRouteEnter:(to,from,next) => {
          console.log('准备进入路由模板');
          console.log(from);
          console.log(to);
          next();
      },
      beforeRouteLeave:(to,from,next) => {
          console.log('准备离开路由模板');
          console.log(from);
          console.log(to);
          next();
      }
    }
</script>

<style scoped>
  .info{
    width: 900px;
    height: 60px;
    background: lemonchiffon;
    border: 1px dashed #dddddd;
    line-height: 60px;
    font-size: 20px;
    margin: auto;
  }

</style>
